import request from "@/utils/request";

// 查询合同附件列表
export function listContractAppendices(query) {
  return request({
    url: "/contract/ContractAppendices/list",
    method: "get",
    params: query,
    handleError: true,
  });
}

// 查询合同附件详细
export function getContractAppendices(contractAppendicesId) {
  return request({
    url: "/contract/ContractAppendices/" + contractAppendicesId,
    method: "get",
    handleError: true,
  });
}

// 新增合同附件
export function addContractAppendices(data) {
  return request({
    url: "/contract/ContractAppendices",
    method: "post",
    data: data,
  });
}

// 修改合同附件
export function updateContractAppendices(data) {
  return request({
    url: "/contract/ContractAppendices",
    method: "put",
    data: data,
  });
}

// 删除合同附件
export function delContractAppendices(contractAppendicesId) {
  return request({
    url: "/contract/ContractAppendices/" + contractAppendicesId,
    method: "delete",
  });
}
